package com.stack.knowyoubase.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 阿里云oss存储配置类
 *
 * @author stack
 */
@Configuration
@PropertySource(value = "classpath:application.yml")
@ConfigurationProperties(prefix = "aliyun.oss")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AliYunOssConfig {
    private String bucketName;
    private String accessKeyId;
    private String accessKeySecret;
    private String endpoint;
}
